﻿using System;
using System.Web;

namespace JinianNet.Web.Context
{
    public class WebContext : IWebContext
    {
        #region IWebContext 成员

        private HttpContext context;
        public HttpContext Context
        {
            get { return context;}
        }

        public HttpRequest Request
        {
            get { return context.Request; }
        }

        public HttpResponse Response
        {
            get { return context.Response; }
        }

        public WebContext(HttpContext ctx)
        {
            this.context = ctx;
        }

        #endregion
    }
}
